<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>


	<input type="hidden" value="${msg}" id="msg"/>
	<p class="claimsmsg" id="p-msg">${msg}</p>
	
	<c:forEach var="claimApplyfor" items="${claimApplyfors}">
			<div class="orderitem">
				<div>
					<span class="orderitemtittle">订单号：</span>
					<span>${claimApplyfor.orderNum}</span>
				</div>
				<a href="<c:url value='/wechat/claim/greenChannel/claimDetail?key=${claimApplyfor.id}'/>" class="orderitem">
					<div>
						<p>
							<span class="orderitemtittle">理赔产品：</span>
							<span>${claimApplyfor.product}</span>
						</p>
						<p>
							<span class="orderitemtittle">申请时间：</span>
							<span class=""><fmt:formatDate value="${claimApplyfor.createDate}" pattern="yyyy-MM-dd"/></span>
						</p>
						<p>
							<span class="orderitemtittle">理赔状态：</span>
							<c:choose>
								<c:when test="${claimApplyfor.state=='checking'}">
									<span class="orderno">待审核</span>
								</c:when>
								<c:when test="${claimApplyfor.state=='checked'}">
									<span class="orderok">审核通过</span>
								</c:when>
							</c:choose>
						</p>
					</div>			
				</a>			
			</div>
		<div style="width:100%;height:10px;background-color: #ebebeb;padding: 0px"></div>
	</c:forEach>

<script type="text/javascript">
/* 当有理赔时，移除显示文字的p标签样式 */
		var text = $("#msg").val();
		if(text==""||text==null){
			$("#p-msg").removeClass("claimsmsg");
		}
</script>